package br.com.repassi.tela;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import br.com.repassi.android_02_aberturadetelas.R;

public class InserirClienteActivity extends Activity {

	private static final String CATEGORIA = "android-02-aberturadetelas";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_inserir_cliente);

		Button btCancelar = (Button) findViewById(R.id.btCancelar);
		btCancelar.setOnClickListener(new OnClickListener() {
			public void onClick(View view) {
					// Fecha a tela
				finish();
			}
		});

		Button btSalvar = (Button) findViewById(R.id.btSalvar);
		btSalvar.setOnClickListener(new OnClickListener() {
			public void onClick(View view) {
				salvar();
			}
		});
	}

	public void salvar() {

		// Fecha a tela
		finish();
	}
}
